package com.wxl.www.wxl.shiro.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.List;

@Data
public class SysPermission {

    private String id;//主键.
    private String name;//名称.
    private String resourceType;//资源类型，[menu|button|platform]
    private String url;//资源路径.
    private String perms; //权限字符串,menu例子：role:*，button例子：role:create,role:update,role:delete,role:view
    private String parentId; //父编号
    private Boolean type = Boolean.FALSE;
    @TableField(exist = false)
    private List<SysPermission> sysPermissionList;
    @TableField(exist = false)
    private List<SysRole> roles;
}
